package com.zzw.properties;

import java.util.List;

/**
 * @author Administrator
 */
public class InterceptorCommonsProperties {

    private static final String DEFAULT_PATH_PATTERN = "/**";
    private List<String> pathPatterns;
    private List<String> excludePathPatterns;

    public InterceptorCommonsProperties() {
        this.pathPatterns = List.of(DEFAULT_PATH_PATTERN);
        this.excludePathPatterns = List.of();
    }

    public InterceptorCommonsProperties(List<String> pathPatterns, List<String> excludePathPatterns) {
        this.pathPatterns = pathPatterns;
        this.excludePathPatterns = excludePathPatterns;
    }

    public InterceptorCommonsProperties(List<String> pathPatterns) {
        this.pathPatterns = pathPatterns;
    }

    public List<String> getPathPatterns() {
        return pathPatterns;
    }

    public void setPathPatterns(List<String> pathPatterns) {
        this.pathPatterns = pathPatterns;
    }

    public List<String> getExcludePathPatterns() {
        return excludePathPatterns;
    }

    public void setExcludePathPatterns(List<String> excludePathPatterns) {
        this.excludePathPatterns = excludePathPatterns;
    }
}
